<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import 'uview-ui/index.scss';
</style>
<script>
export default {
  mounted() {
    uni.getSystemInfo({
      success: function(res) {
        // console.log(res.model)
        // console.log(res.pixelRatio)
        // console.log(res.windowWidth)
        // console.log(res.windowHeight)
        // console.log(res.language)
        // console.log(res.version)
        console.log(res.platform)
        console.log(res.statusBarHeight)
        let nav_top = res.statusBarHeight
        if (res.platform.toLowerCase() == 'android') {
          nav_top += 8
        } else {
          nav_top += 4
        }
        uni.setStorage({ key: 'nav_top', data: nav_top })
      },
    })
  },
  onLaunch: function() {
    console.log('App Launch')
  },
  onShow: function() {
    console.log('App Show')
  },
  onHide: function() {
    console.log('App Hide')
  },
}
</script>

<style>
/*每个页面公共css */
/* @import "/wxcomponents/vant-weapp/common/index.wxss" */
html,
body {
  overflow: hidden;
  height: 100%;
}
</style>
